package com.king.designpatterns.设计模式对比.结构模型对比.代理模式;

/**
 * 明星类
 *
 * @author king
 * @date 2021-06-17 22:06
 */
public class Star implements IStar {
    /**
     * 姓名
     */
    private String name;

    public Star(String name) {
        this.name = name;
    }

    @Override
    public void action() {
        System.out.println(this.name + "在演戏中");
    }

    @Override
    public void advert() {
        System.out.println(this.name + "在做广告代言");
    }
}
